package com.zy.restApi;

import com.zy.bean.Contributor;
import feign.Param;
import feign.RequestLine;

import java.util.List;


public interface Github {

    // 传入的参数后可以拼接成url: https://api.github.com/repos/OpenFeign/feign/contributors

    //   https://api.github.com
    @RequestLine("GET /repos/{owner}/{repo}/contributors")
    List<Contributor> contributors(@Param("owner") String owner, @Param("repo") String repo);

}
